package backend.project.gym_management.service.impl;

import backend.project.gym_management.pojo.dto.CourseIntroDTO;
import backend.project.gym_management.mapper.CourseMapper;
import backend.project.gym_management.pojo.entity.Course;
import backend.project.gym_management.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {

    @Autowired
    private CourseMapper courseMapper;


    @Override
    public List<Course> getAllCourses() {
        return courseMapper.getAllCourses();
    }

    @Override
    public Course getCourseById(Long cid) {
        return null;
    }

    @Override
    public void addCourse(Course course) {

    }

    @Override
    public void updateCourse(Course course) {

    }

    @Override
    public void deleteCourse(Long cid) {

    }

    @Override
    public CourseIntroDTO getCourseIntro(Long cid) {
        return courseMapper.getCourseIntro(cid);
    }
}
